﻿@model IEnumerable<Citi.PTSConsolidation.WebUi.Models.PearlAccountMapModel>
@{
    ViewBag.Title = "Exceptions";
}
<h2>
    Exceptions</h2>
@if (Model == null || !Model.Any())
{
    <p>
        @Ajax.ActionLink("Regenerate Report", "ScheduleRoutine", "Scheduler", new { routineId = 165},
            new AjaxOptions { OnComplete = "alert('Report generation was set!')" }, 
            new { @class = "btn btn-primary" })
    </p>
    
    <span>No exceptions were found</span>
}
else
{
    @Html.Partial("~/Views/PearlAccountMap/List.cshtml", Model)
}